package com.hskn.hss.core.constant;


/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 用户ID
     */
    public static final String JWT_USERID = "userid";


    /**
     * 用户头像
     */
    public static final String JWT_AVATAR = "avatar";

    /**
     * 创建时间
     */
    public static final String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static final String JWT_AUTHORITIES = "authorities";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi://";

    /**
     * redis,车辆报警KEY前缀
     */
    public static final String ABNORMAL = "ABNORMAL_";

    /**
     * 员工状态-离职
     */
    public static final String EMPLOYEE_STATUS_RESIGNATION = "0";

    /**
     * 员工状态-在职
     */
    public static final String EMPLOYEE_STATUS_INCUMBENT = "1";

    /**
     * 类型-车辆
     */
    public static final String TYPE_CAR = "car";

    /**
     * 类型-人员
     */
    public static final String TYPE_PERSON = "emp";

    /**
     * 启用状态-启用
     */
    public static final String ENABLED_STATE_ENABLE = "1";

    /**
     * 启用状态-未启用
     */
    public static final String ENABLED_STATE_NOT_ENABLED = "0";

    /**
     * 状态-正常
     */
    public static final int STATE_NORMAL = 0;

    /**
     * 状态-异常
     */
    public static final int STATE_ABNORMAL = 1;

    /**
     * 状态-休假
     */
    public static final int STATE_BEONLEAVE = 2;

    /**
     * 状态-请假
     */
    public static final int STATE_ASKFORLEAVE = 3;

    /**
     * 状态-无排班
     */
    public static final int STATE_NOSCHEDULE = 4;

    /**
     * 类型(0网格 )
     */
    public static final int GRID_TYPE_FRID_ = 0;

    /**
     * 类型(1电子围栏)
     */
    public static final int GRID_TYPE_ELECTRICFENCE = 1;

    /**
     * 排班类型-固定班
     */
    public static final int SHIFT_TYPE_FIXED_CLASS = 0;

    /**
     * 排班类型-夏季班
     */
    public static final int SHIFT_TYPE_SUMMER_CLASS = 1;

    /**
     * 排班类型-冬季班
     */
    public static final int SHIFT_TYPE_WINTER_CLASS = 2;

    /**
     * 高德API接口
     */
    public static final String GD_API_KEY = "460031fec6f7c87191e3d762ccce979a";
    public static final String GD_API_SID = "428618";
    public static final String GD_API_TID = "416723902";
    //轨迹点上传（单点、批量）
    public static final String GD_API_TRACE_UPLOAD = "https://tsapi.amap.com/v1/track/point/upload";
    //创建轨迹
    public static final String GD_API_TRACE_ADD = "https://tsapi.amap.com/v1/track/trace/add";
    //删除轨迹
    public static final String GD_API_TRACE_DELETE = "https://tsapi.amap.com/v1/track/trace/delete";
    //增加轨迹的自定义字段
    public static final String GD_API_TRACE_ADD_FIELD = "https://tsapi.amap.com/v1/track/point/column/add";
    //查询轨迹信息
    public static final String GD_API_TRACE_SEARCH = "https://tsapi.amap.com/v1/track/terminal/trsearch";
    public static final String GD_API_RESULT_SUCCESS = "10000";
}
